package com.vimi8.ebb.auth.model;

import java.util.Objects;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;



/**
 * 用户实体,登录必须字段.
 **/

/**
 * 用户实体,登录必须字段.
 */
@ApiModel(description = "用户实体,登录必须字段.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-09-12T05:17:54.080Z")

public class LoginUser   {
  private String loginName = null;

  private String loginSecret = null;

  private String verifyCode = null;

  private String clientId = null;

  public LoginUser loginName(String loginName) {
    this.loginName = loginName;
    return this;
  }


  /**
   * 登录名(唯一的身份证,手机号或用户名).
   * @return loginName
  **/
  @ApiModelProperty(required = true, value = "登录名(唯一的身份证,手机号或用户名).")
  public String getLoginName() {
    return loginName;
  }

  public void setLoginName(String loginName) {
    this.loginName = loginName;
  }

  public LoginUser loginSecret(String loginSecret) {
    this.loginSecret = loginSecret;
    return this;
  }

   /**
   * 登录密钥(手机验证码或密码).
   * @return loginSecret
  **/
  @ApiModelProperty(required = true, value = "登录密钥(手机验证码或密码).")
  public String getLoginSecret() {
    return loginSecret;
  }

  public void setLoginSecret(String loginSecret) {
    this.loginSecret = loginSecret;
  }

  public LoginUser verifyCode(String verifyCode) {
    this.verifyCode = verifyCode;
    return this;
  }

   /**
   * 图形验证码值.
   * @return verifyCode
  **/
  @ApiModelProperty(required = true, value = "图形验证码值.")
  public String getVerifyCode() {
    return verifyCode;
  }

  public void setVerifyCode(String verifyCode) {
    this.verifyCode = verifyCode;
  }

  public LoginUser clientId(String clientId) {
    this.clientId = clientId;
    return this;
  }

   /**
   * 客户编号标识.
   * @return clientId
  **/
  @ApiModelProperty(value = "客户编号标识.")
  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LoginUser loginUser = (LoginUser) o;
    return Objects.equals(this.loginName, loginUser.loginName) &&
        Objects.equals(this.loginSecret, loginUser.loginSecret) &&
        Objects.equals(this.verifyCode, loginUser.verifyCode) &&
        Objects.equals(this.clientId, loginUser.clientId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(loginName, loginSecret, verifyCode, clientId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LoginUser {\n");
    
    sb.append("    loginName: ").append(toIndentedString(loginName)).append("\n");
    sb.append("    loginSecret: ").append(toIndentedString(loginSecret)).append("\n");
    sb.append("    verifyCode: ").append(toIndentedString(verifyCode)).append("\n");
    sb.append("    clientId: ").append(toIndentedString(clientId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

